package com.wn.dao;

import com.wn.entity.Manager;
import com.wn.entity.ManagerDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManagerDao {
    int addOne(Manager manager);

    int deleteOne(int id);

    int update(Manager manager);

    List<ManagerDTO> findAll();

    List<Manager> findByAccountAndStatus(@Param("account") String account, @Param("status") String status);

    Manager findByUsername(String account);

    Manager login(@Param("account") String username, @Param("password") String password);
}
